import sys

def count_characters(file_name):
    
def count_words(file_name):
    
if len(sys.argv) != 3:
    print("命令模式: v02.py [参数] [文件名]")
    sys.exit(1)

option = sys.argv[1]
file_name = sys.argv[2]

if option == '-c':
    print("字符数:", count_characters(file_name))
elif option == '-w':
    print("单词数:", count_words(file_name))
else:
    print("无效的参数")